package com.java.imauoj.moudel;

import java.util.List;

public class Filter {

    private List<Field> filterAnd;
    private List<Field> filterOr;
    private Order orderBy;

    public Filter() {
    }

    public Filter(List<Field> filterAnd, List<Field> filterOr, Order orderBy) {
        this.filterAnd = filterAnd;
        this.filterOr = filterOr;
        this.orderBy = orderBy;
    }

    public List<Field> getFilterAnd() {
        return filterAnd;
    }

    public void setFilterAnd(List<Field> filterAnd) {
        this.filterAnd = filterAnd;
    }

    public List<Field> getFilterOr() {
        return filterOr;
    }


    public void setFilterOr(List<Field> filterOr) {
        this.filterOr = filterOr;
    }

    public Order getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(Order orderBy) {
        this.orderBy = orderBy;
    }

    @Override
    public String toString() {
        return "Filter{" +
                "filterAnd=" + filterAnd +
                ", filterOr=" + filterOr +
                ", orderBy=" + orderBy +
                '}';
    }
}
